package com.region.plugin.proxy.jdk;

import com.region.plugin.ProceedPoint;

import java.lang.reflect.Method;

/**
 * @author 26225
 * @date 2024/9/7 13:54
 * @description
 */
public class JdkProceedPoint extends ProceedPoint {

    private Method method;

    public JdkProceedPoint(Object proxy, Object[] args, Method method) {
        super(proxy, args);
        this.method = method;
    }


    @Override
    public Object proceed() throws Throwable {
        return method.invoke(proxy, args);
    }
}
